API Documentation for clear_button Plugin
options : object
Object of options available for "clear_button" plugin
Kind: global typedef
Author: Fabien Winkler
Param | Type | Default | Description |
---|---|---|---|
[title] | string | "Clear" | Title for the clear button |
[className] | string | "clear" | Class name for the clear button |
[label] | string | "×" | [props=data] Label for the clear button |
[html] | function | Method used for rendering |
Example
$('select').selectize({
plugins: [
{
clear_button: {
title: 'Custom title',
className: 'custom-class',
label: 'custom label',
html: (data) => {
return (
`<a class="${data.className}" title="${data.title}">${data.label}</a>`;
}
}
}
]
});